/<template>
  <div class="home">
    <!-- <h1>home</h1> -->
    <div class="content" v-for="item in list" :key="item.id">
      <img :src="item.img" alt="" />
      <span>{{ item.title }}</span>
    </div>
  </div>
</template>

<script>
import { getList } from "@/api/home";
export default {
  name: "HomeIndex",
  data() {
    return {
      list: [],
    };
  },
  created() {
    this.getListHand();
  },
  methods: {
    async getListHand() {
      const res = await getList();
      this.list = res.data.data;
    },
  },
};
</script>

<style scoped lang="scss">
</style>